package com.firesrc.bean;

import java.util.Date;

import jodd.db.oom.meta.DbColumn;
import jodd.db.oom.meta.DbId;
import jodd.db.oom.meta.DbTable;
import lombok.Data;

@DbTable
@Data
public class FullRecord {
  @DbId
  private String id;
  @DbColumn(value = "SRCID")
  private String srcId;
  @DbColumn
  private String mail;
  @DbColumn
  private String url;
  @DbColumn
  private String keyword;
  @DbColumn
  private String content;
  @DbColumn
  private String mailstate;
  @DbColumn
  private String topic;
  @DbColumn
  private Date sendmaildate;

  @Override
  public boolean equals(Object obj) {
    if (this == obj)
      return true;
    if (obj == null)
      return false;
    if (getClass() != obj.getClass())
      return false;
    FullRecord other = (FullRecord) obj;
    if (mail == null) {
      if (other.mail != null)
        return false;
    } else if (!mail.equals(other.mail))
      return false;
    return true;
  }

}
